
keyla
Last online 6 months ago
Joined Mar 6th, 2024
Bio
i love this yea !!
Statistics
Level 4
794
#1,577
Net Worth
86
Profile Views
8
Forum Posts
Pinned
this is my first ever program in c++ rate it out of 10 yippie
#include <iostream>
using namespace std;
int main(){
int fdegree = 0;
int cdegree = 0;
int conversion1 = 0, conversion2 = 0;
cout<<"Enter the degrees in fahrenheit: ";
cin>>fdegree;
conversion1 = (fdegree - 32) / 1.8 ;
cout<<"The degrees in celsius is: "<<conversion1<<endl<<endl;
cout<<"Enter the degrees in celsius: ";
cin>>cdegree;
conversion2 = (cdegree * 1.8) + 32;
cout<<"The degrees in fahrenheit is: "<<conversion2<<endl;
return 0;
}
#include <iostream>
using namespace std;
int main(){
int fdegree = 0;
int cdegree = 0;
int conversion1 = 0, conversion2 = 0;
cout<<"Enter the degrees in fahrenheit: ";
cin>>fdegree;
conversion1 = (fdegree - 32) / 1.8 ;
cout<<"The degrees in celsius is: "<<conversion1<<endl<<endl;
cout<<"Enter the degrees in celsius: ";
cin>>cdegree;
conversion2 = (cdegree * 1.8) + 32;
cout<<"The degrees in fahrenheit is: "<<conversion2<<endl;
return 0;
}
0
15
Replies